﻿using Aliyun.OSS;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.Common.OSS
{
    /// <summary>
    /// 存储空间
    /// </summary>
    public interface IOSSBucket
    {
        /// <summary>
        /// 检查存储空间是否存在
        /// </summary>
        /// <param name="bucketName">存储空间名称</param>
        /// <returns></returns>
        bool CheckeBucketExists(string bucketName);
        /// <summary>
        /// 创建存储空间
        /// </summary>
        /// <param name="bucketName">存储空间名称</param>
        /// <returns></returns>
        Bucket CreateBucket(string bucketName);
        /// <summary>
        /// 获取所有存储空间列表
        /// </summary>
        /// <returns></returns>
        IEnumerable<Bucket> GetBuckets();
    }
}
